package xzy.com.dao;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import xzy.com.entity.domain.Menu;
@Repository
public interface MenuMapper extends BaseMapper<Menu>{
	IPage<Menu> findParentMenu(Page<Menu> page, QueryWrapper<Menu> wrapper);
	
	//查询一级目录
		List<Map<String,Object>>findDirMenu();
		//查询一级目录对应的菜单
		List<Map<String,Object>>findSubMenu(@Param("parentId")Long parentId);
}
